<template>
	<view>
		<nav-box :title="title"></nav-box>
		<view class="content">
			<block v-for="item in list" :key="item.id">
				<navigator :url="`../detailList/detailList?type=${item.type}&title=${item.title}`" hover-class="none">
					<view class="experience-box">
						<text>{{item.title}}</text>
						<image src="../../static/images/forward.png" mode=""></image>
					</view>
				</navigator>
			</block>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: ''
			};
		},
		onLoad(options) {
			this.title = options.title
			this.list = [
				{
					id: 1,
					title: '第4批基础知识培训',
					type: 1
				},
				{
					id: 2,
					title: '第3批基础知识培训',
					type: 2
				}
			]
		}
	}
</script>

<style lang="scss" scoped>
page {
	background-color: #FFFFFF;
}
.content {
	padding: 0 40upx;
	.experience-box {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 40upx 0;
		border-bottom: 2upx solid #f1f1f1;
		color: #4b4b4b;
		font-size: 32upx;
		image {
			width: 40upx;
			height: 40upx;
		}
	}
}
</style>
